//
//  FourSetTableViewCell.m
//  marrymarry
//
//  Created by lsj on 16/10/11.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "FourSetTableViewCell.h"
#import "FourSetModel.h"
@implementation FourSetTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)loadTheViewWithArry:(NSMutableArray *)myArry andIndexPath:(NSIndexPath *)indexPath
{
    FourSetModel * model  = myArry[indexPath.row];
    [self.headImgView setImageWithURL:[NSURL URLWithString:model.headImgName]];
    self.headImgView.layer.masksToBounds = YES;
    self.headImgView.layer.cornerRadius = 5;
    
    self.NameYearsLabel.text = [NSString stringWithFormat:@"%@ %@",model.nameStr,model.birthStr];
    self.addressLabel.text = model.addressStr;
    self.wantMarryTimeLabel.text = model.wantMarryTimeStr;
    self.TimeLabel.text = model.TimeStr;
    if (self.isGifts)
    {
        self.infoLabel.text =@"很渴望和你交往，给你送了礼物并留言";
        self.watchGiftBtn.hidden= NO;
    }
    else if (self.isOtherHeart)
    {self.infoLabel.text =@"对你很心动，快去看看";}
    else if (self.isVister)
    {self.infoLabel.text =@"查看了你的资料";}
    else if (self.isMyheart)
    {self.infoLabel.text =@"我的心动对象";
        self.RedheartImgView.hidden = NO;
    }


}

@end
